.class Lcom/waiqin365/lightapp/dailyreport/view/be;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/dailyreport/view/at;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/dailyreport/view/at;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/be;->a:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 4

    const/4 v3, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/be;->a:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/at;->k(Lcom/waiqin365/lightapp/dailyreport/view/at;)I

    move-result v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/be;->a:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/view/at;->a(Lcom/waiqin365/lightapp/dailyreport/view/at;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-lt v0, v1, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/be;->a:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v0, v3}, Lcom/waiqin365/lightapp/dailyreport/view/at;->b(Lcom/waiqin365/lightapp/dailyreport/view/at;I)I

    :cond_0
    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/be;->a:Lcom/waiqin365/lightapp/dailyreport/view/at;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/be;->a:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/at;->a(Lcom/waiqin365/lightapp/dailyreport/view/at;)Ljava/util/ArrayList;

    move-result-object v0

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/be;->a:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v2}, Lcom/waiqin365/lightapp/dailyreport/view/at;->k(Lcom/waiqin365/lightapp/dailyreport/view/at;)I

    move-result v2

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/c/b;

    iput-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/view/at;->g:Lcom/waiqin365/lightapp/dailyreport/c/b;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/be;->a:Lcom/waiqin365/lightapp/dailyreport/view/at;

    iput-boolean v3, v0, Lcom/waiqin365/lightapp/dailyreport/view/at;->h:Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/be;->a:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/at;->b(Lcom/waiqin365/lightapp/dailyreport/view/at;)Landroid/app/Activity;

    move-result-object v0

    invoke-static {v0}, Lcom/fiberhome/gaea/client/d/e;->a(Landroid/app/Activity;)Z

    move-result v0

    if-nez v0, :cond_1

    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/be;->a:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/at;->l(Lcom/waiqin365/lightapp/dailyreport/view/at;)Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/be;->a:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/at;->l(Lcom/waiqin365/lightapp/dailyreport/view/at;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->clear()V

    :goto_1
    new-instance v0, Lcom/waiqin365/lightapp/dailyreport/b/a/d;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/dailyreport/b/a/d;-><init>()V

    new-instance v1, Lcom/waiqin365/lightapp/dailyreport/b/b;

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/be;->a:Lcom/waiqin365/lightapp/dailyreport/view/at;

    iget-object v2, v2, Lcom/waiqin365/lightapp/dailyreport/view/at;->j:Landroid/os/Handler;

    invoke-direct {v1, v2, v0}, Lcom/waiqin365/lightapp/dailyreport/b/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/lightapp/dailyreport/b/a/a;)V

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/dailyreport/b/b;->start()V

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/be;->a:Lcom/waiqin365/lightapp/dailyreport/view/at;

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/at;->a(Lcom/waiqin365/lightapp/dailyreport/view/at;Ljava/util/List;)Ljava/util/List;

    goto :goto_1
.end method
